package com.ruoyi.exception;

import lombok.Getter;

@Getter
public class GlobalCustomException extends RuntimeException{

    private String errorCode;

    public GlobalCustomException() {
    }

    public GlobalCustomException(GlobalErrorCodeEnum globalErrorCodeEnum) {
        super(globalErrorCodeEnum.getMessage());
        this.errorCode = globalErrorCodeEnum.getCode();
    }

}
